#include <iostream>
#include <memory.h>
#include "SelectServer.hpp"

// ./main 8080
int main(int argc, char *argv[])
{
    if (argc != 2)
    {
        std::cout << "指令错误"<<std::endl;
        return 1;
    }

    uint16_t port = std::stoi(argv[1]);

    std::shared_ptr<SelectServer> sp = std::make_shared<SelectServer>(port);
    sp->Init();
    sp->Loop();

    return 0;
}